/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 设备品种Entity
 * @author 盖伦
 * @version 2016-12-19
 */
public class XtSbzl extends DataEntity<XtSbzl> {
	
	private static final long serialVersionUID = 1L;
	private String sbzl;		// 设备种类
	private String sbzlmc;		// 设备种类名称
	private String pid;		// 所属种类
	private String parentid;
	private String remark; // 备注
	
	public XtSbzl() {
		super();
	}

	public XtSbzl(String id){
		super(id);
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	@Length(min=1, max=20, message="设备种类长度必须介于 1 和 20 之间")
	public String getSbzl() {
		return sbzl;
	}

	public void setSbzl(String sbzl) {
		this.sbzl = sbzl;
	}
	
	@Length(min=0, max=40, message="设备种类名称长度必须介于 0 和 40 之间")
	public String getSbzlmc() {
		return sbzlmc;
	}

	public void setSbzlmc(String sbzlmc) {
		this.sbzlmc = sbzlmc;
	}
	
	@Length(min=0, max=20, message="所属种类长度必须介于 0 和 20 之间")
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}